
<template>
    <div class="container_query">
        <a-form layout="inline" :model="query" @submit="handleQuery">
            <a-form-item>
                <a-button type="primary" @click="handleQuery">
                    <Icon icon="SearchOutlined" />查询
                </a-button>
            </a-form-item>
        </a-form>
    </div>
</template>


<script setup lang="ts">
import { ref } from 'vue';
import { Bus } from '@/plugin';
// Component
import Icon from '@/component/common/Icon.vue';
// Model
import { OrgQuery } from '@/model/org';

// 变量
const query = ref(new OrgQuery());

// 方法
const handleQuery = () => {
    Bus.emit('refresh_org', query.value);
}
</script>

<style lang="less" scoped>
</style>
